using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class CameraController : MonoBehaviour
{
    public Camera camera;
    public float speed = 0;
    public float wheelSpeed = 0;
    // Start is called before the first frame update
    void Start()
    {
        
    }

    // Update is called once per frame
    void Update()
    {

        float wheel = Input.GetAxis("Mouse ScrollWheel") * Time.deltaTime * wheelSpeed;
        camera.transform.Translate(-wheel * Vector3.forward);

        if (Input.GetKey(KeyCode.A))
        {
           transform.Translate(Vector3.forward * Time.deltaTime*speed);
        }
        if (Input.GetKey(KeyCode.D))
        {
           transform.Translate(Vector3.back * Time.deltaTime*speed);
        }
        if (Input.GetKey(KeyCode.S))
        {
           transform.Translate(Vector3.left * Time.deltaTime*speed);
        }
        if (Input.GetKey(KeyCode.W))
        {
           transform.Translate(Vector3.right * Time.deltaTime*speed);
        }
    }

}
